//
//  SPHTTPRequestOperationManager.h
//  SuperPartner
//
//  Created by EvanZ on 15-3-15.
//  Copyright (c) 2015年 EvanZ. All rights reserved.
//

#import "AFHTTPRequestOperationManager.h"
#import "JSONKit.h"
#import "Define.h"

@interface SPHTTPRequestOperationManager : AFHTTPRequestOperationManager

//login
- (void)loginPara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                   failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

//sign in
- (void)signinPara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                   failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

//send verification code to cell phone
- (void)sendVerificationCodePara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

//send verification code when sign in
- (void)sendSigninVerificationCodePara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;


//reset password
- (void)resetPasswordPara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                  failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

//get user info
- (void)getUserInfoWithID:(NSString*)pid Success:(void (^)(AFHTTPRequestOperation *, id))success failure:(void (^)              (AFHTTPRequestOperation *, NSError *))failure;

//home info
- (void)getHomeInfoPara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                      failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;


//get partners
- (void)getPartnersInfoWithID:(NSString*)pid Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                   failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

//set invitation code
- (void)setInvitationCodePara:(NSDictionary*)para Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
          failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;


@end
